package com.lcc.dingtalk.robot;

import com.lcc.dingtalk.robot.base.config.SwaggerConfig;
import com.lcc.dingtalk.robot.base.config.WebConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Import;

/**
 * @author lincc
 * @version 1.0  2018/11/27
 */
@SpringBootApplication
@Import({SwaggerConfig.class, WebConfig.class})
public class SystemApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SystemApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
    }
}
